package com.java.cloud.account.entity.com.java.cloud.account.api;

import com.java.common.utils.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author jiangli
 * @since 2020/3/13 12:27
 */
public interface AccountApi {

	/**
	 * 扣减余额
	 */
	@PostMapping("/decrease")
	R decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
